package stud.aistar.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import stud.aistar.vo.CommentUserVo;

import java.util.List;

/**
 * *
 *
 * @ClassName :wangyu
 * @Description
 * @Author
 * @Date2019/10/18 21:56
 * @Version V1.0
 */
public interface CommentUserVoMapper {

    @Select("select c.*,u.username from comment c join user u on c.user_id = u.id where c.doctor_id = #{ids}")
    List<CommentUserVo> findAll(@Param("ids") Integer dId);

}
